

def belongs_to(x,a,b):
    return (x >= a and x <= b)


class MembershipFunctionAlreadyExsists(Exception):
    
    def __init__(self,aMember):
        self.member = aMember
        
    def __str__(self):
        return "Membership Function %s already exsists" % (self.member.name)
    